﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChuangDu_Spirit_QGB_IDAL
{
    public partial interface IBaseDAL<T> where T :class ,new ()
    { /// <summary>
      /// 添加数据
      /// </summary>
      /// <param name="t"></param>
      /// <returns></returns>
        int Add(T t);
        /// <summary>
        /// 删除数据
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        int Delete(T t);
        /// <summary>
        /// 修改数据
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        int Update(T t);
        /// <summary>
        /// 显示全部数据
        /// </summary>
        /// <returns></returns>
        IEnumerable<T> show();
        
        
    }
}
